<template>
  <div class="flex flex-col h-screen">
    <div class="flex-1 text-primary">posts:{{ idValue }}</div>
  </div>
</template>

<script lang="ts" setup>
const { params } = useRoute()

const idValue = ref(params.id)

if (!idValue.value) {
  throw createError({
    statusCode: 404,
    statusMessage: '页面未找到'
  })
}
</script>
